package week04.file;

/**
 * Created by zhangxiaokun on 2018/3/2.
 */
public class FileAA extends File {
    public FileAA(String path, String fileName) {
        super(path, fileName);
        setSize((int)Math.random()*1000);    //简化，给定随机占空间大小
    }


    @Override
    public void open() {
        System.out.println("打开文件" + getPath());
    }

    @Override
    public void add(File file) {

    }

    @Override
    public void addFiles(File... fileList) {

    }

    @Override
    public boolean remove(File file) {
        return false;
    }

    @Override
    public File getChild(int index) {
        return null;
    }
}
